package com.company;

import org.springframework.beans.factory.annotation.Autowired;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * Created by ruoan on 2020/9/24 21:25
 */
public class Student {


    
    private String[] cources; //学生学习的课程
    private List<String> teachers; //该学生的老师们
    private Map<String,String> grades; //学生各个科目分数
    private Set<String> favorites; // 该学生的爱好\
    private List<Lover> lover;  //喜欢的人

    public void setLover(List<Lover> lover) {
        this.lover = lover;
    }

    public void setCources(String[] cources) {
        this.cources = cources;
    }

    public void setTeachers(List<String> teachers) {
        this.teachers = teachers;
    }

    public void setGrades(Map<String, String> grades) {
        this.grades = grades;
    }

    public void setFavorites(Set<String> favorites) {
        this.favorites = favorites;
    }


    @Override
    public String toString() {
        return "Student{" +
                "cources=" + Arrays.toString(cources) +
                ", teachers=" + teachers +
                ", grades=" + grades +
                ", favorites=" + favorites +
                ", lover=" + lover +
                '}';
    }
}
